﻿using FaceWebServer.Interface;
using FaceWebServer.Utility.VerifyAttribute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FC8280TServer.Controllers.FaceDevice
{
    /// <summary>
    /// 查询设备的参数
    /// </summary>
    public class DeviceReportQueryParameter : BasePageParameter
    {
        [VerifyLong(iMax: UInt32.MaxValue, iMin: 0,
                errCode: 1, sErrorDesc: "人员编号超出范围(1-4294967295)")]
        public long EmployeeID { get; set; }

        [VerifyText(iMax: 30, iMin: 0, required: false, errCode: 2, sErrorDesc: "设备SN由1-30个字符组成")]
        public string DeviceID { get; set; }


        [VerifyNum(iMax: 111, iMin: 0, errCode: 4, sErrorDesc: "事件类型错误，取值范围：")]
        public int eventType { get; set; }


        [VerifyDateTime(required: true, errCode: 6, sErrorDesc: "出入记录时间必须输入")]
        public DateTime ReportBegin { get; set; }

        [VerifyDateTime(required: true, errCode: 7, sErrorDesc: "出入记录时间必须输入")]
        public DateTime ReportEnd { get; set; }
    }
}
